/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：SanHuanTaoYue.java <br>
 * 创建时间：2013-8-23 下午6:45:02 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.battle.proc.stunt;

import lostland.gmud.exv2.Gmud;
import lostland.gmud.exv2.battle.BattleScreen;
import lostland.gmud.exv2.battle.proc.Status;
import lostland.gmud.exv2.data.Npc;

/**
 * 类名：SanHuanTaoYue <br>
 * 说明：30.太极剑·6.三环套月   29.川枫一刀流·16.旋风三连斩
 *
 * @author 12548
 */
public class SanHuanTaoYue extends Status {

	/**
	 *
	 */
	public SanHuanTaoYue(Npc zdp, Npc bdp, int huan) {
		super(zdp, bdp);
		this.huan = huan;
	}


	int huan;
	int round = -1;

	/* （非 Javadoc）
	 * @see lostland.gmud.exv2.battle.proc.Status#execute()
	 */
	@Override
	public void execute() {
		round++;
//		if(round ==0)
//		{
//			
//			AttackStatus.ag = GmudWorld.zs[huan+round];
//			GmudWorld.bs.setStatus(new AnotherDummyStatus(new AttackStatus(this)));
//			ViewScreen.setText(GmudWorld.bs.bsp(AttackStatus.ag.c));
//			GmudWorld.game.setScreen(new ViewScreen(GmudWorld.game));
//		}
//		else 
		if (round < 3) {
			String p = "【三环套月" + (round + 1) + "/3】";
			if (huan == 132)
				p = "【旋风三连斩" + (round + 1) + "/3】";
			BattleScreen.getInstance().atkprocess(zdp, bdp, Gmud.zs.get(huan + round), this, p);

//			GmudWorld.bs.push(this);

//			AttackStatus.ag = GmudWorld.zs[huan+round];
//			GmudWorld.bs.setStatus(new AttackStatus(this));
//			ViewScreen.setText(GmudWorld.bs.bsp(AttackStatus.ag.c));
//			GmudWorld.game.setScreen(new ViewScreen(GmudWorld.game));
		} else {
			if (huan == 87)
				zdp.setTransfixed(zdp.getDz() + 1);
			else
				zdp.setTransfixed(zdp.getDz() + 3);
//			zdp.str_bouns += ( zdp.skills[1] + zdp.skills[31] * 2 ) / 10;

		}

	}

}
